<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>内容页</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
<script src="./js/menu_1.js" type="text/javascript"></script>
<script src="./slider/coin-slider.js" type="text/javascript"></script>
<script src="./slider/coin-slider.min.js" type="text/javascript"></script>
<link rel="stylesheet" href="./css/content_1.css" type="text/css" />
<link rel="stylesheet" href="./slider/coin-slider-styles.css" type="text/css" />
</head>
<body>
<?php
	require_once "common.php";
    $pid=$_GET[pid];
    $aid=$_GET[aid];
    if($pid!=""&&$aid!=""){
            @$part=new part($pid,'','');
            @$article=new article($aid,'','','','','');
            $slider=$article->slideShow();
            $partArray=$part->showPart();
            $menu=$part->showMenu();
            $content=$article->returnArticle();
            $hotNews=$article->hotNews();
        }
 ?>
<div id="top"></div>
<div id="contenter">
<div id="coin-slider" style="margin:0 auto 0 auto;">
<?php for($s=0;$s<count($slider)-1;$s++){ ?>
    <a href="./content_1.php?pid=<?php echo $slider[$s][pid]; ?>&aid=<?php echo $slider[$s][aid]; ?>" target="_blank">
        <img <?php echo $slider[$s][pic]; ?>>
        <span><?php echo $slider[$s][title]; ?></span>
    </a>
<?php
}
?>
</div>
<script type="text/javascript">
    $(document).ready(function() {
        $('#coin-slider').coinslider({ width:800,navigation:true,dely:5000 });
    });
</script>
<!--new menu-->
<SCRIPT type=text/javascript>
$(document).ready(function() {	

	jQuery.jqsxfg51nav = function(jqsxfg51navhover) {
		$(jqsxfg51navhover).prepend("<span></span>"); 
		
		$(jqsxfg51navhover).each(function() { 
			var linkText = $(this).find("a").html(); 
			$(this).find("span").show().html(linkText); 
		}); 
		
		$(jqsxfg51navhover).hover(function() {	
			$(this).find("span").stop().animate({ 
				marginTop: "-40" 
			}, 250);
		} , function() { 
			$(this).find("span").stop().animate({
				marginTop: "0" 
			}, 250);
		});	
	};
	//下面是调用方法，一个页面也可以调用很多次
	$.jqsxfg51nav("#menu1 li");
	$.jqsxfg51nav("#menu2 li");
});
</SCRIPT>
<div id="menu2" type="float:left;border-radius:15px;">
<ul>
	<li><a href="./index.php"><?php echo "首页"; ?></a></li>
<?php for($i=1;$i<count($menu);$i++){ ?>
	<li><a href="./list_1.php?pid=<?php echo $menu[$i][pid]; ?>"><?php echo $menu[$i][part]; ?></a></li>
<?php } ?>
</ul>
<div class="cls"></div>
</div>
<!--
<div id="menu">
<ul id="nav">
    </li>
        <li class="mainlevel"><a href="">关于我们</a>
        <ul>
            <li><a href="">简介</a></li>
            <li><a href="">服务项目</a></li>
            <li><a href="">服务流程</a></li>
            <li><a href="">人才招聘</a></li>
            <li><a href="">联系我们</a></li>
        </ul>
    </li>
    <li class="mainlevel"><a href="">新闻资讯</a>
        <ul>
        	<li><a href="">结婚宝典</a></li>
            <li><a href="">行业资讯</a></li>
            <li><a href="">最新活动</a></li>
        </ul>
    </li>
    <li class="mainlevel"><a href="">婚礼分享</a>
        <ul>
        	<li><a href="">婚礼创意</a></li>
            <li><a href="">婚礼分享</a></li>
            <li><a href="">宝宝宴</a></li>
        </ul>
    </li>
    
    <li class="mainlevel"><a href="">幸福报价</a>
        <ul>
		<li><a href="">喜车报价</a></li>
            <li><a href="">经典实惠系列</a></li>
            <li><a href="">简单时尚系列</a></li>
            <li><a href="">经典浪漫系列</a></li>
            <li><a href="">华丽尊享系列</a></li>
            <li><a href="">奢华焕彩系列</a></li>
        </ul>
    </li>
    <li class="mainlevel"><a href="">婚礼百货</a>
        <ul>
            <li><a href="">喜糖</a></li>
            <li><a href="">请帖</a></li>
            <li><a href="">红包</a></li>
            <li><a href="">签到台/本</a></li>
            <li><a href="">婚房饰品</a></li>
        </ul>
    </li>
        <li class="mainlevel"><a href="">精品婚纱馆</a>
        <ul>
            <li><a href="">精品拖尾</a></li>
            <li><a href="">高端齐地</a></li>
            <li><a href="">典雅礼服</a></li>
        </ul>

</ul>
</div>
-->
<div id="sidebar">
	<div id="sidebartitle">热门推荐</div>
	<div id="side_content">
			<ul><?php for($i=0;$i<count($hotNews);$i++){ ?>
			<li><a href="./content_1.php?pid=<?php echo $hotNews[$i][pid]; ?>&aid=<?php echo $hotNews[$i][aid]; ?>"><?php echo $hotNews[$i][title]; ?></a></li>
                <?php } ?>
			</ul>
	</div>
</div>
	<div id="mainbox">
    <?php
        echo "<p class=\"title\">".$content[title]."</p>";
        echo "<p class=\"time\">发布时间：".$content[time]."</p>";
        echo "<hr />";
        echo $content[content];
    ?>
	</div>
</div>
</body>
</html>
